<script type="text/javascript">
    function chontl(id) {
        $('#products-list-block-62').load('Ajax//Top5.php?idtl=' + id);
    }
</script>
<div class="sidebox">
    <div class="sidebox-title">
        <h3>Top 5 bán chạy nhất</h3>
    </div>
    <div class="sidebox-body">
        <div class="category-picker">
            <div class="picker">

                <select name="cid" class="search-filter" onchange="chontl(this.value);">
                    <?php foreach ($this->theloai1 as $row) { ?>
                            <option  value="<?php echo $row['matl1']; ?>"><?php echo $row['tentl1']; ?></option>
                        <?php } ?>
                    </select>
                </div>
            </div>


            <div class="p-products-list-2" id="products-list-block-62">
               
                    <div class="product-one">
                        <div class="p-thumb" onmouseover=<?php echo "'tooltip($value[0])'; " ?>>
                            <a href="sach.php?idsach=<?php echo $value[0]; ?>" title="<?php echo $value[1]; ?>">
                                <img class="" src="<?php echo $value[14]; ?>" alt="<?php echo $value[1]; ?>" width="91" height="145" border="0"/>
                            </a>
                            <div class="p-brank"><?php echo (int) $stt++; ?></div>
                            <div>
                                <h2><a href=""><?php echo $value[1]; ?></a></h2>
                                <div class="p-price">
                                    <?php (int) $giaban = ((int) $value[5] - (int) $value[5] * (int) $value[6] / 100); ?>
                                    <span><span id="sec_sell_price_69711"><?php echo number_format($giaban, "0", ",", "."); ?></span>&nbsp;VNĐ</span>
                                </div>
                                <?php if ((int) $value[6] > 0) { ?>
                                    <div class="p-discount-percent">(Giảm <?php echo $value[6]; ?>%)</div>
                                <?php } ?>
                            </div>
                        </div>
                        <div class="cleardiv"></div>
                    </div>
            <div class="cleardiv"></div>
        </div>

    </div>
</div>